package jUnitTest;

import org.junit.Test;

import depot.Customer;
import depot.IDFormatException;
import depot.Name;
import depot.NameValueException;

public class CustomerTest {
	
	private Name name;

	/**
	 * test the format of the supplied parcel ID
	 * @throws NameValueException
	 * @throws IDFormatException
	 */
	@Test(expected = IDFormatException.class)
	public  void invalidParcelIDSupplied() throws NameValueException, IDFormatException {
		name = new Name("John Brown");
		Customer parcelID_1 = new Customer(1,name,"X020");		

		Customer parcelID_2 = new Customer(1,name,"N0120");
	}		
	
}
